package com.pack.www;

class Dog{

    static {
        System.out.println("静态代码块");
    }


    {
        System.out.println("实例代码块");
    }


    public static void brak(){


        {
            System.out.println("普通代码块");
        }
        System.out.println("汪汪！");
    }

}

public class Animal {


    public static void main(String[] args) {
        System.out.println("实例化Dog对象");
        Dog dog1 = new Dog();
        dog1.brak();;
        System.out.println("==================");
        System.out.println("实例化第二个Dog对象");
        Dog dog2 = new Dog();
        dog2.brak();

    }
    public static void main1(String[] args) {

        System.out.println("没有实例化Dog对象");

    }


}
